const generateData = (count) => {
  const data = [];
  for (let i = 0; i < count; i++) {
    data.push([
      Math.random() * 15, // Global_UMAP_1
      Math.random() * 8,  // Global_UMAP_2
      Math.random() * 5       // Expression level
    ]);
  }
  return data;
};

const option = {
  tooltip: {},
  xAxis: {
    type: 'value',
    name: 'Global_UMAP_1'
  },
  yAxis: {
    type: 'value',
    name: 'Global_UMAP_2'
  },
  visualMap: [
    {
      position: "right",
      realtime: false,
      right: "2%",
      bottom: "30%",
      selectedMode: "multiple",
      dimension: 2,
      selected: [],
      min: 0,
      max: 5,
      precision: 0,
      splitNumber: 0,
      calculable: true
    }
  ],
  series: [{
    name: 'Data',
    type: 'scatter',
    data: generateData(1000),
    encode: {
      x: 0,
      y: 1,
      value: 2
    }
  }]
};


export default function getData() {
  return option;
}
